package news;

import de.app.badresden.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class NewsDetailsActivity extends Activity {

	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		
		setContentView(R.layout.news_detailslayout);
		
		Bundle bun = getIntent().getExtras();
		News news = (News) bun.getSerializable("News");
		
		TextView textViewDate = (TextView)findViewById(R.id.news_details_date);
		textViewDate.setText(news.getDate());	
		
		TextView textViewMsg = (TextView)findViewById(R.id.news_details_message);
		textViewMsg.setText(news.getMessage());	
		
		TextView textViewAuthor = (TextView)findViewById(R.id.news_details_author);
		textViewAuthor.setText(news.getAuthor());	
	}
}
